package com.dp.futurebyjdk;

import java.util.concurrent.Callable;

/**
 * @author 金鑫
 */
public class RealData implements Callable<String> {

    protected final String para;
    
    public RealData(String para){
       this.para = para;
    }
    
    @Override
    public String call() throws Exception {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            try {
                Thread.sleep(100);
            } catch (Exception e) {}
        }
        return sb.toString();
    }

}
